package com.lyc.day1107.demo01;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author ：Xiaochen
 * @date ：Created in 2022/11/7 19:39
 * @description：
 * @modified By：
 * @version:
 */
public class Test02 {
    public static void main(String[] args) {
        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss");
        LocalDateTime dateTime = LocalDateTime.parse("2021/11/09 03:33:33", dtf);
        String format = dateTime.format(dtf);
        System.out.println(format);

    }
}